package com.alien.admin.modules.basic.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class Pod implements Serializable {

    private String podName;
    private String creationTimestamp;
    private String image;
    private Boolean ready;
    private String containerStatusesState;
    private Integer restartCount;
    private String hostIP;
    private String podIP;
    private String phase;
    private String containerName;

    private Condition initialized;
    private Condition readyCondition;
    private Condition containersReady;
    private Condition podScheduled;

    private Date creationTimestampDate;

    private List<Port> ports;

    @Data
    public static class Condition {

        private Boolean status;
        private String lastProbeTime;
        private String lastTransitionTime;
        private String reason;
        private String message;
    }

    @Data
    public static class Port {
        String name;
        Integer containerPort;
        String protocol;
    }
}
